/*
 * @FilePath: /reacte-template/vite.config.ts
 * @Descripttion: 
 * @version: 1.0.0
 * @Author: lijinshen
 * @Date: 2024-05-16 18:46:55
 * @LastEditors: lijinshen
 * @LastEditTime: 2024-05-19 10:43:06
 */
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import AutoImport from 'unplugin-auto-import/vite'
import AntdResolver from 'unplugin-auto-import-antd'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react(), 
    // AutoImport({
    //   resolvers: [AntdResolver()]
    // })
  ],
  resolve: {
    alias: [
      { find: '@', replacement: '/src' }
    ]
  },
  server:{
    port:3001,
    host:'0.0.0.0'
  }
})
